package com.lagou;

import com.lagou.bean.ConsumerCompoment;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

public class consumer {
//	public static void main(String[] args) throws IOException, InterruptedException {
//		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration.class);
//		context.start();
//		ConsumerCompoment service = context.getBean(ConsumerCompoment.class);
//		while (true) {
//			System.in.read();
//			try {
//				String hello = service.sayHello("马云");
//				System.out.println("result :" + hello);
//			} catch (Exception e) {
//				e.printStackTrace();
//			}
//		}
//	}

//	@Configuration
//	@PropertySource("classpath:/dubbo-consumer.properties")
//	// @EnableDubbo(scanBasePackages = "com.lagou.bean")
//	@ComponentScan("com.lagou.bean")
//	@EnableDubbo
//	static class ConsumerConfiguration {
//
//	}
}
